/**
 * There are <a href="https://www.hdzhx.com">邯郸智讯</a> code generation
 */
package com.boxin.ims.modules.jiujiudevice.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.alibaba.druid.support.json.JSONUtils;
import com.thinkgem.jeesite.common.persistence.BaseEntity;

/**
 * 墨盒使用记录Entity
 * @author sxh
 * @version 2018-10-26
 */
@Entity
@Table(name = "jiu_ink_record")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class JiuInkRecord extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	private Long id; 		// 编号
	/**订单号*/
	private String orderNo; 
	/**设备sn*/
	private String sn;
	/**设备名称*/
	private String snName;
	/**设备状态 0-关闭 1-开启*/
	private String snStatus;
	/**墨盒状态 0-关闭 1-开启*/
	private String inkStatus;
	/**会员openId*/
	private String memberId;
	/**墨盒数据*/
	private String inkMessage;
	private Date createTime;	// 创建日期

	public JiuInkRecord() {
		this.createTime = new Date();
	}

	public JiuInkRecord(Long id){
		this();
		this.id = id;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	//@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_jiujiudevice_jiuInkRecord")
	//@SequenceGenerator(name = "seq_jiujiudevice_jiuInkRecord", sequenceName = "seq_jiujiudevice_jiuInkRecord")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getSnStatus() {
		return snStatus;
	}

	public void setSnStatus(String snStatus) {
		this.snStatus = snStatus;
	}

	public String getInkStatus() {
		return inkStatus;
	}

	public void setInkStatus(String inkStatus) {
		this.inkStatus = inkStatus;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	public String getInkMessage() {
		return inkMessage;
	}

	public void setInkMessage(String inkMessage) {
		this.inkMessage = inkMessage;
	}

	@NotNull
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getSnName() {
		return snName;
	}

	public void setSnName(String snName) {
		this.snName = snName;
	}

	
	
}


